<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::group(['namespace'=>'Home'],function (){
    Route::get('login','AuthController@login');
    Route::post('doLogin','AuthController@doLogin');
    Route::get('reg','AuthController@reg');
    Route::post('doReg','AuthController@doReg');


    Route::get('/','IndexController@index');
    Route::get('newcomer', function () {
        return view('home.newcomer');
    });
    Route::get('alllist','IndexController@alllist');
    Route::get('content','IndexController@content');
    Route::get('slide','IndexController@slide');

    Route::get('personal','UserController@personal');
    Route::get('edit','UserController@edit');
    Route::get('tixian','UserController@tixian');
    Route::get('tixian_record','UserController@tixian_record');
    Route::get('team/{id?}','UserController@team');
    Route::get('kefu','UserController@kefu');
    Route::get('mycard','UserController@mycard');
    Route::get('record','UserController@record');
    Route::get('guide','UserController@guide');

});

Route::get('/testhome', 'HomeController@index');
